package com.ly.service;

import com.github.pagehelper.PageInfo;
import com.ly.bean.EasybuyOrder;
import com.ly.bean.EasybuyOrderDetail;

import java.util.List;

/**
@author 李岩
@date 2021/12/14-13:52
@describe
*/
public interface OrderService {
    /**
     * 添加订单
     */
    int insert(EasybuyOrder order, List<EasybuyOrderDetail> orderDetailList) throws Exception;
    /**
     * 修改订单表中支付的状态
     */
    void updateOrderPayStatus(Integer oid, String tradeId) throws Exception;
    //查询所有的订单信息
    PageInfo<EasybuyOrder> selectAllOrders(String pageNum) throws Exception;

    //根据登录的用户id获取该用户的订单信息
    PageInfo<EasybuyOrder> selectOrderByUserId(Integer userId,Integer pageNum) throws Exception;
}
